package com.doctorliang.cheng.shopping.app;

import android.app.Application;
import android.content.Context;

import org.xutils.BuildConfig;
import org.xutils.x;

/**
 * Created by CHENG on 2017/9/30.
 */

public class MyApplication extends Application {
    private static Context mcontext;
    @Override
    public void onCreate() {
        super.onCreate();
        mcontext = this;
        x.Ext.init(this);
        x.Ext.setDebug(BuildConfig.DEBUG);//是否输出debug日志
    }

    public static Context getContext() {
        return mcontext;
    }
}
